home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 140
/
(Vol 140) Sep 19 2011.iso
/
Games
/
world-wars.swf
/
scripts
/
__Packages
/
classes
/
Game_sounds.as
< prev
next >
Wrap
Text File
|
2011-09-19
|
1KB
|
55 lines
class classes.Game_sounds
{
function Game_sounds()
{
}
function menuSoundtrack()
{
if(_global.ARE_SOUNDS == true)
{
this._sndTrack.stop();
this._sndTrack = new Sound();
this._sndTrack.attachSound("menu1");
this._sndTrack.start(0,1);
this._sndTrack.onSoundComplete = mx.utils.Delegate.create(this,this.menuSoundtrack2);
}
}
function menuSoundtrack2()
{
if(_global.ARE_SOUNDS == true)
{
delete this._sndTrack.onSoundComplete;
this._sndTrack.stop();
this._sndTrack = new Sound();
this._sndTrack.attachSound("menu2");
this._sndTrack.start(0,99999);
}
}
function gameSoundtrack()
{
if(_global.ARE_SOUNDS == true)
{
this._sndTrack.stop();
this._sndTrack = new Sound();
this._sndTrack.attachSound("gra");
this._sndTrack.start(0,99999);
}
}
function killSoundtrack()
{
this._sndTrack.stop();
}
function soundsON(track)
{
}
function playSound(snd)
{
if(_global.ARE_SOUNDS == true)
{
var _loc2_ = new Sound();
_loc2_.attachSound(snd);
_loc2_.start();
}
}
}